<?php

/**
 * Tanaxia_Config.php
 *
 * The Tanaxia_Config lets us access the main configuration file
 * 
 * Copyright 2009, Marcus Schumann - Tanax
 * Licensed under The MIT License - Modification, Redistribution allowed but must retain the above copyright notice
 * @link 		http://www.opensource.org/licenses/mit-license.php
 *
 * @package 	Tanaxia_Config - TAF
 * @created 	Aug 9th 2009
 * @version 	1.0
 * @link		-
 * 
 * @changelog
 * - 09/08/09	v1.0	Initial release
 */

class Tanaxia_Config
{

	private $config = array();

	public function __construct()
	{
	
		include(CONFIG . 'config' . EXT);
		$this->config = $config;
	
	}
	
	public function __get($setting)
	{
	
		if(isset($this->config[$setting]))
		{
		
			return $this->config[$setting];
		
		}
		
		die('Setting ' . $setting . ' is not set');
	
	}
	
	public function __set($setting, $value)
	{
	
		$this->config[$setting] = $value;
	
	}
	
}


// End of Tanaxia_Config.php